package net.feling.mcloud.connection;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.support.annotation.Nullable;

public class ConnectionService extends Service {

    private static final String TAG = "ConnectionService";
    private ConnectorManager connectorManager;
    private LocalBinder binder = new ConnectionService.LocalBinder();


    @Override
    public void onCreate() {
        connectorManager = ConnectorManager.getInstance(this.getApplicationContext());
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        return 1;
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return binder;
    }

    public class LocalBinder extends Binder {
        public ConnectionService getService() {
            return ConnectionService.this;
        }
    }
}
